import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import { Base } from './base';

@EntityModel('admin_user')
export class User extends Base {
  @Column({
    length: 100,
    unique: true,
  })
  username: string;
  @Column({
    length: 100,
  })
  name: string;
  @Column({
    length: 100,
  })
  salt: string;
  @Column()
  password: string;
  @Column({
    nullable: true,
  })
  email: string;
}
